import io from 'socket.io-client';
const socket = io('ws://localhost:3003/');
import '@ant-design/pro-components/dist/components.css';

socket.on('news', function (data) {
  console.log(data);
  socket.emit('my other event', { my: 'data' });
}); 